import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-expect-error忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//svg插件需要的配置代码
import 'virtual:svg-icons-register'
import GlobalComponent from '@/components'
import '@/styles/index.scss'
import router from './router'
import pinia from './store'
import './permisstion'
// import axios from 'axios';

// axios({
//   url:'/api/user/login',
//   method:'post',
//   data:{
//     username:'admin',
//     password:'111111'
//   }
// })

// import SvgIcon from '@/components/SvgIcon/index.vue'
// console.log(GlobalComponent)

// 测试代码：测试假的接口能否使用
const app = createApp(App)
app.use(GlobalComponent)
app.use(ElementPlus, { locale: zhCn })
app.use(router)
app.use(pinia)
app.mount('#app')
//console.log(import.meta.env);
